package SeparateWriter;

/**
 * User: Mike
 * Date: 12/11/11
 */
public class mainProgram {
    public static boolean programIsRunning = true;
    public static boolean writeOut = false;

	public static void main(String[] args) throws InterruptedException {
		Thread threadGUI = new Thread(new TemperatureReporter());
		threadGUI.start();
//		Thread threadTemp = new Thread(new Temperature());
//		threadTemp.start();

		int counter = 0;
		int maxTime = 10;
		while(threadGUI.isAlive()){
			threadGUI.join(1000); 																//wait max of 1 sec for messageloop thread to finish
		}
//		threadTemp.stop();
        programIsRunning = false;
        Data.programRunning = false;
	}
}

